package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @create: 2022-09-26 14:05
 * @author: 怀念天空
 * @Description:
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@TableName(value = "goods_order")
public class GoodsOrder {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 物资id
     */
    @TableField(value = "goods_id")
    private Integer goodsId;

    /**
     * 数量
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 业务类型
     */
    @TableField(value = "business_type")
    private Integer businessType;

    /**
     * 收货方(公司id)
     */
    @TableField(value = "company_recive")
    private Integer companyRecive;

    /**
     * 价格
     */
    @TableField(value = "money")
    private BigDecimal money;

    /**
     * 支付状态
     */
    @TableField(value = "pay_status")
    private Integer payStatus;

    @TableField("order_date")
    private Date orderDate;

    @TableField("order_state")
    private Integer orderState;

    @TableField(exist = false)
    private Goods goods;

    @TableField(exist = false)
    private Company receiveCompany;
}